<template>
	<view>
		<Temp>
			<block-title>{{ title }}</block-title>
			<page-detail :htmlNodes="htmlNodes" />
		</Temp>
	</view>
</template>

<script setup>
import { reactive, ref } from 'vue';
import { request } from '@/utils/request.js' 
import { onLoad } from '@dcloudio/uni-app';
import Temp from "../../components/temp/temp.vue"
import BlockTitle from "../../components/blockTitle/blockTitle.vue"
import PageDetail from "../../components/pageDetail/pageDetail.vue"
	
let title = ref('')
let htmlNodes = ref('')
	
const getDetail = (id) => {
	request({
		url: `/system/dict/data/${id}`,
	}).then(res => {
		htmlNodes.value = res.data.remark ? JSON.parse(res.data.remark).htmlText : ''
		title.value = res.data.dictLabel
	})
}

onLoad(opt => {
	getDetail(opt.id)
});

	
</script>

<style lang="scss">

</style>
